package cf;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;

public class Example04 {

	public static void main(String[] args) {
		
		Map<String, String> dictionary = new HashMap<String,String>();

		dictionary.put("Ciao","Hello");
		dictionary.put("Mondo","World");
		dictionary.put("Letto","Bed");
	
		Set<String> keys = dictionary.keySet();
		
		Set<String> orderedKeys = new TreeSet<String>();
		orderedKeys.addAll(keys);
				
		for (String key : orderedKeys) {
			String value = dictionary.get(key);
			System.out.println(key+" si dice "+value);
		}
		
		
	}
}
